let hd = {
  title: "后盾人",
  url: "houdunren.com",
  teacher: {
    name: "向军大叔",
    age: 18
  }
};
let json = JSON.stringify(hd, null, 2);
console.log(json);


var obj = JSON.parse(json)
console.log(obj)

console.log('-----------------------------------------\n')

var obj2 = JSON.parse(json, (key, val) => {
  // console.log(key, val)
  if(key === 'name') {
    return '【后盾人】' + val
  }
  // 如果到了最顶层，则直接返回属性值，
  if(key === '') return val;     
  return val  
})

console.log(obj2)

